<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import { dengl2 } from 'com/shuju'
export default {
  name: 'App',
  watch: {
    $route (to, from) {
      if (from.path === '/write') {
        this.$store.commit('getArticalTag', '')
      }
      // this.$refs.user.style.backgroundColor = 'rgb(60,141,188)'
      this.$store.commit('changeUserCenter', false)
    }
  },
  mounted () {
    dengl2(this)
  }
}
</script>

<style>
  @import '../static/font.css';
</style>
